package br.com.ordersys.web.client.modules.uicomp;

import br.com.ordersys.web.client.modules.utils.UIUtils;

import com.google.gwt.user.client.ui.Label;

public class ErrorBox extends Label {
	public ErrorBox(){
		super();
	}
	
	public void setMessage(String s){
		setText(s);
		UIUtils.setWidgetStyle(this, "display: block");
	}
	
	public void clear(){
		setText("");
		UIUtils.setWidgetStyle(this, "display: none");
	}
}
